package com.chj.annotation;

import com.alibaba.dubbo.config.annotation.Reference;
import com.chj.service.AnotationUserService;
import org.springframework.stereotype.Component;

/**
 * 注解方式的service
 */
@Component("annotatedConsumer")
public class ConsumerAnnotationService {
    @Reference
    private AnotationUserService anotationUserService;

    public String getDetail(String name) {
        return anotationUserService.getDetail(name);
    }
}
